﻿using My.Admin.Enum;
using My.Admin.Model;
using My.Admin.Model.System;
using System.ComponentModel.DataAnnotations;
using System.Xml;

namespace My.Admin.Dto.System
{
	public class DictDataInput : BaseIdInput
	{
		/// <summary>
		/// 状态
		/// </summary>
		public StatusEnum Status { get; set; }
	}

	public class PageDictDataInput : PagerInfo
	{
		/// <summary>
		/// 字典类型Id
		/// </summary>
		public long DictTypeId { get; set; }

		/// <summary>
		/// 值
		/// </summary>
		public string Value { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public string Code { get; set; }
	}

	public class AddDictDataInput : SysDictData
	{
	}

	public class UpdateDictDataInput : AddDictDataInput
	{
	}

	public class DeleteDictDataInput : BaseIdInput
	{
	}
	public class GetDataDictDataInput
	{
		/// <summary>
		/// 字典类型Id
		/// </summary>
		public long DictTypeId { get; set; }
	}

	public class QueryDictDataInput
	{
		/// <summary>
		/// 编码
		/// </summary>
		[Required(ErrorMessage = "字典唯一编码不能为空")]
		public string Code { get; set; }

		/// <summary>
		/// 状态
		/// </summary>
		public int? Status { get; set; }
	}
}
